package com.aos.erp.manager.model.notice;

import com.aos.erp.manager.enums.OrgType;
import com.aos.erp.manager.enums.ReadStatus;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel("通知公告下发组织")
@TableName("t_notice_dispense_org")
public class NoticeDispenseOrg {
    @ApiModelProperty(value="记录ID",hidden=true)
    @TableId(value = "id", type = IdType.INPUT)
    private long id;
    @ApiModelProperty(value="公告ID",hidden=true)
    @TableId("notice_id")
    private long noticeId;

    @ApiModelProperty("公告下发机构类型：jx为驾校；cgs为车管所；ax为傲雄")
    @TableField("org_type")
    private OrgType orgType = OrgType.ax;

    @ApiModelProperty(value = "阅读状态：read_no为未读；read_yes为已读", hidden = true)
    @TableField("read_status")
    private ReadStatus readStatus = ReadStatus.read_no;

    @ApiModelProperty(value = "组织ID",hidden=true)
    @TableField("org_id")
    private long orgId;

    @ApiModelProperty(value = "组织编号")
    @TableField("org_code")
    private String orgCode;

    @ApiModelProperty(value = "组织名称")
    @TableField("org_name")
    private String orgName;

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public long getNoticeId() {
        return noticeId;
    }

    public void setNoticeId(long noticeId) {
        this.noticeId = noticeId;
    }

    public OrgType getOrgType() {
        return orgType;
    }

    public void setOrgType(OrgType orgType) {
        this.orgType = orgType;
    }

    public ReadStatus getReadStatus() {
        return readStatus;
    }

    public void setReadStatus(ReadStatus readStatus) {
        this.readStatus = readStatus;
    }

    public long getOrgId() {
        return orgId;
    }

    public void setOrgId(long orgId) {
        this.orgId = orgId;
    }

    public String getOrgCode() {
        return orgCode;
    }

    public void setOrgCode(String orgCode) {
        this.orgCode = orgCode;
    }

    public String getOrgName() {
        return orgName;
    }

    public void setOrgName(String orgName) {
        this.orgName = orgName;
    }

    public String getOrgTypeName() {
        return orgType.getDesc();
    }

    public String getReadStatusName() {
        return readStatus.getDesc();
    }
}
